<template>
    <div class="Sort-container">
        <!-- 头部 -->
        <div class="Sort-header">
            <div>
              <router-link to="/Index">
                <img class="zjt" :src="puctuer.zjt" alt="" />
              </router-link>
            </div>
            <div>分类</div>
            <div>
                <ul v-for="item in list" :key="item.id">
                  <li>{{ item }}</li>
                </ul>
            </div>
        </div>
        <!-- 分类 -->
        <div class="Sort-body">
			      <div class="Sort-body-list">
              <router-link :to="{ path: item.pathss }" v-for="(item,index) in alls" :key="index" active-class="changeClass">
                {{item.wordss}}
              </router-link>
			      </div>
			      <router-view></router-view>
		    </div>
        <Allfooter />
    </div>
</template>

<script>
import Allfooter from '@/components/Allfooter.vue'
export default {
    name: 'Sort',
    components:{
        Allfooter
    },
    data() {
        return {
          alls:[
              {
                "pathss":'/Sort/Hot',
                wordss:'热门推荐'
            },
            {
                "pathss":'/Sort/Womenwear',
                wordss:'潮流女装'
            },
            {
                "pathss":'/Sort/Manwear',
                wordss:'品牌男装'
            },
            {
                "pathss":'/Sort/Underwear',
                wordss:'内衣配饰'
            },
            {
                "pathss":'/Sort/Electrical',
                wordss:'家用电器'
            },
            {
                "pathss":'/Sort/Computer',
                wordss:'电脑办公'
            },
            {
                "pathss":'/Sort/Phone',
                wordss:'手机数码'
            },
            {
                "pathss":'/Sort/Infant',
                wordss:'母婴频道'
            },
            {
                "pathss":'/Sort/Book',
                wordss:'图书'
            },
            {
                "pathss":'/Sort/Textiles',
                wordss:'家居家纺'
            },
                ],
            list:['','',''],
            puctuer: {
                 zjt: require("@/assets/images/左箭头.png"),
      },
        };
        
    },
    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style scoped>
a {
    text-decoration: none;
    color: black;
  }
.Sort-container {
    background-color: rgb(243, 245, 247);
    height: 800px;
    width: 400px;
    margin: 0 auto;
  }
  .Sort-header {
    width: 100%;
    height: 44px;
    background: linear-gradient(white, rgb(241, 241, 241));
    border-bottom: 2px solid lightgray;
    display: flex;
  }
  .Sort-header > div:nth-of-type(1) {
    width: 20%;
    height: 100%;
  }
  .Sort-header > div:nth-of-type(2) {
    width: 60%;
    height: 100%;
    text-align: center;
    line-height: 44px;
  }
  .denglu {
    width: 70px;
    text-align: center;
    line-height: 44px;
  }
  .zjt {
    width: 25px;
    height: 25px;
    margin-top: 9.5px;
    margin-left: 5px;
  }
  .Sort-header ul li {
    float: left;
    list-style: none;
    width: 4px;
    height: 4px;
    margin-left: 3px;
    border: 2px solid black;
    border-radius: 50%;
    margin-top: 5px;
  }
  .Sort-header > div:nth-of-type(1) {
    width: 15%;
    height: 100%;
  }
  .Sort-header > div:nth-of-type(2) {
    width: 65%;
    height: 100%;
    text-align: center;
    line-height: 44px;
  }
  .Sort-header > div:nth-of-type(3) {
    width: 20%;
    height: 100%;
  }
  .Sort-header > div:nth-of-type(2)>input{
    width:150px;
    height: 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid gray;
    text-indent: 10px;
    outline: none
  }
  .Sort-body{
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	background-color: rgb(245,245,245);
}
.Sort-body-list{
	width: 90px;
	height: 100%;
	position: relative;
	
}

.Sort-body-list>a{
	width: 90px;
	height: 50px;
	line-height: 50px;
	display: inline-block;
  text-align: center;
	color: black;
}

.changeClass{
	background-color: gray;
	font-weight: bold;
}

</style>